package com.classes;

import java.util.ArrayList;

/**
 * Created by mporcino on 6/17/14.
 */
public class Authentication {

    private Authentication()
    {

    }

    public static Boolean Identify(User user, ArrayList<User> usersList)
    {
        for (User target : usersList)
        {
            if (target.getLibraryNumber().equals(user.getLibraryNumber()))
            {
                if (target.getPassword().equals(user.getPassword()))
                {
                    return true;
                }
            }
        }

        return false;
    }
}
